package cn.edu.lingnan.pojo;

public class Participation {
    private int id;
    private int student_id;
    private int competition_id;
    private String competition_name;
    private float score;
    private int competition_rank;
    private int status;

    public Participation() {
    }

    public Participation(int id, int student_id, int competition_id, float score, int competition_rank,int status) {
        this.id = id;
        this.student_id = student_id;
        this.competition_id = competition_id;
        this.score = score;
        this.competition_rank = competition_rank;
        this.status = status;
    }



    public Participation(int student_id, int competition_id, float score, int competition_rank, int status) {
        this.student_id = student_id;
        this.competition_id = competition_id;
        this.score = score;
        this.competition_rank = competition_rank;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStudent_id() {
        return student_id;
    }

    public void setStudent_id(int student_id) {
        this.student_id = student_id;
    }

    public int getCompetition_id() {
        return competition_id;
    }

    public void setCompetition_id(int competition_id) {
        this.competition_id = competition_id;
    }

    public String getCompetition_name() {
        return competition_name;
    }

    public void setCompetition_name(String competition_name) {
        this.competition_name = competition_name;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public int getCompetition_rank() {
        return competition_rank;
    }

    public void setCompetition_rank(int competition_rank) {
        this.competition_rank = competition_rank;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Participation{");
        sb.append("id=").append(id);
        sb.append(", student_id=").append(student_id);
        sb.append(", competition_id=").append(competition_id);
        sb.append(", competition_name='").append(competition_name).append('\'');
        sb.append(", score=").append(score);
        sb.append(", competition_rank=").append(competition_rank);
        sb.append(", status=").append(status);
        sb.append('}');
        return sb.toString();
    }
}
